<template>
    <div>
        <button @click="getStudents">获取学生信息</button>
    </div>
</template>

<script>
import axios from "axios";

export default {
    name: "App",
    methods: {
        getStudents() {
            axios.get("http://localhost:8080/api/students").then(
                response => {
                    console.log("request success", response.data)
                },
                error => {
                    console.log("error", error.message)
                }
            )
        }
    }
}
</script>

<style>

</style>